package ua.org.nuos.sdms.middle.service;

import ua.org.nuos.sdms.middle.entity.User;
import ua.org.nuos.sdms.middle.util.exception.DuplicateEmailException;
import ua.org.nuos.sdms.middle.util.exception.InvalidCodeException;

import javax.annotation.PostConstruct;
import javax.ejb.Local;

/**
 * User: Denis Fahritdinov
 * Date: 10/7/12
 * Time: 11:48 AM
 */
@Local
public interface RegistrationServiceLocal {

    /**
     * Register new user in the system
     *
     * @param user user with password
     * @throws DuplicateEmailException
     */
    void registerNewUser(User user) throws DuplicateEmailException;
}
